import Vuex from 'vuex'
import Vue from 'vue'
import createPersistedState from 'vuex-persistedstate'
import user from './modules/user'
import activity from './modules/activity'
import search from './modules/search'


Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user, // 用户模块
    activity, // 活动相关模块
    search // 搜索模块
  },
  plugins: [createPersistedState()]
})